@(message: String)
@main2(message) {
    @*使用之前，确保已经引入了jQuery，需要 1.7 以上版本。*@
    <link rel="stylesheet" href="../../main2/css/niceValidator/jquery.validator.css" />
    <div class="row">
        <div class="col-md-6">
            <div class="portlet light ">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="icon-social-dribbble font-blue-sharp"></i>
                        <span class="caption-subject font-blue-sharp bold uppercase">nicevalidator表单校验</span>
                    </div>
                </div>
                <div class="portlet-body">
                    <div id="nicevalidator">
                        <form id="demo_11" action="results.php" method="post" autocomplete="off">
                            <fieldset>
                                <p><input type="text" name="user[name]" data-rule="用户名:required;username" placeholder="用户名"></p>
                                <p><input type="password" name="user[pwd]" data-rule="required;password" placeholder="密码"></p>
                            </fieldset>
                            <button type="submit">提交</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="portlet light ">
                <div class="portlet-title">
                    <div class="caption">
                        <i class="icon-social-dribbble font-blue-sharp"></i>
                        <span class="caption-subject font-blue-sharp bold uppercase">nicevalidator表单校验</span>
                    </div>
                </div>
                <div class="portlet-body">
                    <div id="nicevalidator">
                        <form id="demo_13" action="results.php" method="post" autocomplete="off"
                        data-validator-option="{theme:'yellow_right_effect',stopOnError:true}">
                            <fieldset>
                                <p><input type="text" name="username" data-rule="用户名:required;username" placeholder="用户名"></p>
                                <p><input type="password" name="password" data-rule="密码:required;password" placeholder="密码"></p>
                            </fieldset>
                            <button type="submit">提交</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>

    </div>
    @*使用之前，确保已经引入了jQuery，需要 1.7 以上版本。*@
    <script src="../../main2/js/niceValidator/jquery.validator.js"></script>
    <script src="../../main2/js/niceValidator/zh-CN.js"></script>
    <script>
            $(function () {
                var menuArray=[$("#pre_function"),$("#formValidator"),$("#niceValidator")];
                activeMenu( menuArray);
                $('form[name="register"]').validator({
                    stopOnError: false,
                    timely: false,
                    fields: {
                        'email': 'required;email;'
                    }
                });
            });

    </script>

}


